import { ref, computed } from 'vue'
export default function getCount(){
 // vue3 数据 类似vue2的data
 let count = ref<number>(1)
 // vue3的计算属性
 let doubleCount = computed<number>(() => {
   return count.value * 2
 })
 // vue3的函数
 let say = (): void => {
   count.value++
 }
  return {
    count,
    doubleCount,
    say
  }
}